package com.cxxx.guns.modular.backend.service.impl;

import com.cxxx.guns.modular.backend.model.Video;
import com.cxxx.guns.modular.backend.dao.VideoMapper;
import com.cxxx.guns.modular.backend.service.IVideoService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yyi
 * @since 2018-09-18
 */
@Service
public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements IVideoService {

    @Override
    public Video nextVideo(Date date) {
        return this.baseMapper.nextVideo(date);
    }

    @Override
    public Video previousVideo(Date date) {
        return this.baseMapper.previousVideo(date);
    }

    @Override
    public List<Video> listVideoSeven() {
        return this.baseMapper.selectVideo();
    }
}
